/**
 * @file rk_nv12_to_rgb.h
 * @author your name (you@domain.com)
 * @brief yuv和rgb格式转换相关事务
 * @version 0.1
 * @date 2022-12-31
 * 
 * @copyright Copyright (c) 2022
 * 
 */

void init_yuv420p_table();


void nv12_to_rgb24(unsigned char *yuvbuffer, unsigned char *rga_buffer,
                   int width, int height);
                   
int nv12_border(char *pic, int pic_w, int pic_h, int rect_x, int rect_y,
                int rect_w, int rect_h, int R, int G, int B);